package com.xhwl.centiotdata.service.cent;

import com.xhwl.common.pojo.cent.sdata.Organization;
import com.xhwl.common.dto.cent.residence.ResidentInfoDTO;
import com.xhwl.common.pojo.cent.residence.ResidentEstateRelation;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.List;

import java.util.List;

/**
 * @description:
 * @author: wuyuhao
 * @createDate: 2022/12/2 10:37
 */
@FeignClient(value = "platform-residence")
public interface IResidentInfoService {

    @RequestLine("POST /platform-residence/getOrgIdByAccountId")
    Integer getOrgIdByAccountId(@Param("accountId") String accountId);

    /**
     * 根据用户id获取组织列表
     * 云对讲使用
     *
     * @param accountId
     * @param projectId
     * @return
     */
    @RequestLine("POST /platform-residence/getOrgListByAccountId")
    List<Organization> getOrgListByAccountId(@Param("accountId") String accountId, @Param("projectId") Integer projectId);

    @RequestLine("POST /residence-service/list")
    List<ResidentEstateRelation> getList(@Param("residentInfoDTO") ResidentInfoDTO residentInfoDTO);

}
